package dk.ihk.ssgroup5.service;

import java.util.HashMap;

public class DesignService {

	private HashMap<String, String> pages = new HashMap<String, String>();
	private HashMap<String, String> nav = new HashMap<String, String>();

	public DesignService() {
		pages.put("1", "login.jsp");
		pages.put("4", "home.jsp");
		pages.put("5", "newCV.jsp");
		pages.put("6", "overview.jsp");
		pages.put("8", "logout.jsp");
		pages.put("10", "success.jsp"); 
		
		nav.put("1", "navStart.jsp");
		nav.put("2", "navHacker.jsp");
	}

	public String getPageUrl(String pageId) {
		String pageUrl = null;
		pageUrl = pages.get(pageId);
		if (pageUrl == null){
			pageUrl = "navStart.jsp";
		}
		return pageUrl;
	}

	public String getNavUrl(String navId) {
		String navUrl = null;
		navUrl = nav.get(navId);
		if (navUrl == null){
			navUrl = "navStart.jsp";
		}
		return navUrl;
	}

}
